package com.cykj.config;


import com.cykj.pojo.CyRole;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//配置类注解
//案例：通过配置类，将cyRole这个对象注入容器中
@Configuration
public class MyConfig {
    @Bean
    public CyRole getRole(){
        CyRole cyRole = new CyRole();
        return cyRole;
    }
}
